Add array typehint to 2 DatabaseUpdater methods
authoraddshore <addshorewiki@gmail.com>
Mon, 6 Mar 2017 12:36:57 +0000 (13:36 +0100)
committerAddshore <addshorewiki@gmail.com>
Wed, 15 Mar 2017 13:50:27 +0000 (13:50 +0000)
Change-Id: I29abd4525b46e9b47cf3933e5fcb791fd6ea3fb5

includes/installer/DatabaseUpdater.php
includes/installer/OracleUpdater.php

index f8ab1f2..98d354c 100644 (file)
@@ -392,7 +392,7 @@ abstract class DatabaseUpdater {
         * Writes the schema updates desired to a file for the DB Admin to run.
         * @param array $schemaUpdate
         */
-       private function writeSchemaUpdateFile( $schemaUpdate = [] ) {
+       private function writeSchemaUpdateFile( array $schemaUpdate = [] ) {
                $updates = $this->updatesSkipped;
                $this->updatesSkipped = [];
 
@@ -425,7 +425,7 @@ abstract class DatabaseUpdater {
         *
         * @param array $what What updates to perform
         */
-       public function doUpdates( $what = [ 'core', 'extensions', 'stats' ] ) {
+       public function doUpdates( array $what = [ 'core', 'extensions', 'stats' ] ) {
                $this->db->setSchemaVars( $this->getSchemaVars() );
 
                $what = array_flip( $what );
index 79ae175..e262eda 100644 (file)
@@ -285,7 +285,7 @@ class OracleUpdater extends DatabaseUpdater {
         *
         * @param array $what
         */
-       public function doUpdates( $what = [ 'core', 'extensions', 'purge', 'stats' ] ) {
+       public function doUpdates( array $what = [ 'core', 'extensions', 'purge', 'stats' ] ) {
                parent::doUpdates( $what );
 
                $this->db->query( 'BEGIN fill_wiki_info; END;' );